This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
public class BlueJava extends AgentBase { //Begin Main Class
String PAR="Test me";
String SN = "Zorrilla";
public void NotesMain() { //Begin Notes Main method
try { //Begin the try method
Vector SponsorName, SponsorEMailAddress, SponsorPhone, SponsorFax, SponsorTitle;
int SponIndex;
System.out.println(SN +" testing me");
BPResults rsa = BluePages.getPersonsByName(SN);
Vector nameColumn1 = rsa.getColumn("NAME");
if (nameColumn1.isEmpty()) { //Begin if to check for a return from bluepages
System.out.println("The name you typed in the Sponsor Name field is invalid please re-enter it. ");
// System.exit(1);
} //End if to check for a return from bluepages
//if there is a correctly entered Sponsor Name in the Sponsor field set the following fields to null
System.out.println("Replacing values with null");
// if (SponIndex > 0) { //Begin if there is an Sponsor Name in the Sponsor field
BPResults rs = BluePages.getPersonsByName(SN);
Vector nameColumn = rs.getColumn("NAME");
Vector faxColumn=rs.getColumn("fax");
Vector TitleColumn=rs.getColumn("Title");
Vector internetColumn=rs.getColumn("internet");
Vector xphoneColumn=rs.getColumn("xphone");
// } // End if there is an SponsorName in the Sponsor field
} //End Try method
catch(Exception e) {
e.printStackTrace();
}
} //End Notes Main method
} //End main Class